<?php

class DesignTimeWorkflowEndNode extends AbstractDesignTimeWorkflowNode
{

  protected function configure ()
  {
    $this->setMinOutNodes(0);
    $this->setMaxOutNodes(0);
  }

  /**
   * @param RunTimeWorkflow $workflow
   * @return AbstractRunTimeWorkflowNode
   */
  public function createRunTimeNode (RunTimeWorkflow $workflow)
  {
    return new RunTimeWorkflowEndNode($workflow, $this);
  }
}